﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace DFGK_WMS.Model.Models
{
    /// <summary>
    /// 库区
    /// </summary>
    [Table("T_Areas")]
    public class Area:BaseEntity
    {
        /// <summary>
        /// 库区编码
        /// </summary>
        [MaxLength(50)]
        public string Code { get; set; }
        /// <summary>
        /// 库区名称
        /// </summary>
        [MaxLength(20)]
        public string Name { get; set; }
        /// <summary>
        /// 是否物理库区
        /// </summary>
        public bool? IsRealArea { get; set; }
        /// <summary>
        /// 库房Id
        /// </summary>
        public long? WhId { get; set; }
        /// <summary>
        /// 库房编码
        /// </summary>
        [MaxLength(50)]
        public string WhCode { get; set; }
        /// <summary>
        /// 库房名称
        /// </summary>
        [MaxLength(20)]
        public string WhName { get; set; }
        /// <summary>
        /// 状态：0-禁用；1-正常；
        /// </summary>
        public int Status { get; set; }
        /// <summary>
        /// 类型Id
        /// </summary>
        public long TypeId { get; set; }
        /// <summary>
        /// 类型名称
        /// </summary>
        [MaxLength(20)]
        public string TypeName { get; set; }
        /// <summary>
        /// 对应ERP系统的库区编码
        /// </summary>
        public string Erpcode { get; set; }
        /// <summary>
        /// 库区面积
        /// </summary>
        [Column(TypeName = "decimal(18,2)")]
        public decimal? BuiltArea { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        [MaxLength(50)]
        public string Remark { get; set; }
        /// <summary>
        /// 排序号
        /// </summary>
        public int DisplayOrder { get; set; }
        
        public int? ShelfCount { get; set; }
    }
}
